import pymysql
from config.settings import DB_HOST,DB_PASS,DB_PORT,DB_USER,DATABASE

def conn_mysql():
    conn = pymysql.connect(
        host = DB_HOST,
        port = DB_PORT,
        user = DB_USER,
        password = DB_PASS,
        db = DATABASE
    )
    return conn
